package org.example.multiThreading.communication;

public class AddMoney implements Runnable{

    BandCard card;
    public AddMoney(BandCard bandCard){
        card = bandCard;
    }

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            try {
                card.put(200);
            }catch (Exception e){}
        }
    }
}
